package cn.hdu.liang.dao;

import cn.hdu.liang.po.User;
import org.apache.ibatis.jdbc.SQL;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    public User findUserById(int id) throws SQLException;

    public List<User> findUserByName(String name) throws SQLException;

    public void insertUser(User user) throws SQLException;

    public void deleteUser(int id) throws SQLException;
}
